package cn.zwx.goods.svc.mapper;

import cn.zwx.goods.svc.domain.CategoryAttrDO;
import cn.zwx.goods.svc.domain.entity.CategoryAttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author zhangwenxue
* @description 针对表【category_attr】的数据库操作Mapper
* @createDate 2023-12-27 17:05:43
* @Entity generator.domain.CategoryAttr
*/
public interface CategoryAttrMapper extends BaseMapper<CategoryAttrEntity> {
    /**
     * 新增
     * @param record 新增请求参数
     * @return 返回影响行数
     */
    int insertSelective(CategoryAttrEntity record);


    /**
     * 批量新增
     * @param categoryAttrList categoryAttrList
     * @return 返回影响行数
     */
    int batchInsert(@Param("list") List<CategoryAttrEntity> categoryAttrList);

    /**
     * 根据类目信息id返回数据信息
     * @param categoryId 类目id
     * @return 返回属性信息
     */
    List<CategoryAttrDO> selectAttrListByCategoryId(@Param("categoryId") Integer categoryId);
}
